package android.slc.appbase.ui.activity.base;

import android.os.Bundle;
import android.slc.appbase.vm.AppBaseViewModel;
import android.slc.corelifecycle.ui.activity.FastRxMvvmActivity;
import android.slc.toolbar.ISlcToolBarDelegate;

import androidx.annotation.Nullable;
import androidx.databinding.ViewDataBinding;

import com.blankj.utilcode.util.BarUtils;
import com.blankj.utilcode.util.KeyboardUtils;

public abstract class AppMvvmBaseActivity<V extends ViewDataBinding, VM extends AppBaseViewModel> extends FastRxMvvmActivity<V, VM> {

    @Override
    public void onBindViewBefore() {
        super.onBindViewBefore();
    }

    @Override
    public void onBindView(@Nullable Bundle savedInstanceState) {
        super.onBindView(savedInstanceState);
        KeyboardUtils.fixAndroidBug5497(this);
    }

    @Override
    protected void onInitBarVm() {
        super.onInitBarVm();
        BarUtils.transparentStatusBar(this);
        mBarVm.setStatusBarLightMode(true);
    }

    @Override
    protected ISlcToolBarDelegate onInitSlcToolBarDelegate() {
        return null;
    }

}
